package com.weaver.drools.common.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the D_RECTIFYTYPE_126 database table.
 * 
 */
@Entity
@Table(name="D_RECTIFYTYPE_126")
public class DRectifytype126 implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="D_RECTIFYTYPE_126_RECTIFYTYPEID_GENERATOR",sequenceName="SE_D_RECTIFYTYPE_126",allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="D_RECTIFYTYPE_126_RECTIFYTYPEID_GENERATOR")
	private Long rectifytypeid;

	private Long isdeleted;

	private String rectifytypecode;

	private String rectifytypename;

	private String remark;

	@Column(name="RESERVED_1")
	private String reserved1;

	@Column(name="RESERVED_2")
	private String reserved2;

	@Column(name="RESERVED_3")
	private String reserved3;

	//bi-directional many-to-one association to DRectifytype126
	@ManyToOne
	@JoinColumn(name="P_RECTIFYTYPEID")
	private DRectifytype126 DRectifytype126;

	//bi-directional many-to-one association to DRectifytype126
	@OneToMany(mappedBy="DRectifytype126")
	private Set<DRectifytype126> DRectifytype126s;

	public DRectifytype126() {
	}

	public Long getRectifytypeid() {
		return this.rectifytypeid;
	}

	public void setRectifytypeid(Long rectifytypeid) {
		this.rectifytypeid = rectifytypeid;
	}

	public Long getIsdeleted() {
		return this.isdeleted;
	}

	public void setIsdeleted(Long isdeleted) {
		this.isdeleted = isdeleted;
	}

	public String getRectifytypecode() {
		return this.rectifytypecode;
	}

	public void setRectifytypecode(String rectifytypecode) {
		this.rectifytypecode = rectifytypecode;
	}

	public String getRectifytypename() {
		return this.rectifytypename;
	}

	public void setRectifytypename(String rectifytypename) {
		this.rectifytypename = rectifytypename;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getReserved1() {
		return this.reserved1;
	}

	public void setReserved1(String reserved1) {
		this.reserved1 = reserved1;
	}

	public String getReserved2() {
		return this.reserved2;
	}

	public void setReserved2(String reserved2) {
		this.reserved2 = reserved2;
	}

	public String getReserved3() {
		return this.reserved3;
	}

	public void setReserved3(String reserved3) {
		this.reserved3 = reserved3;
	}

	public DRectifytype126 getDRectifytype126() {
		return this.DRectifytype126;
	}

	public void setDRectifytype126(DRectifytype126 DRectifytype126) {
		this.DRectifytype126 = DRectifytype126;
	}

	public Set<DRectifytype126> getDRectifytype126s() {
		return this.DRectifytype126s;
	}

	public void setDRectifytype126s(Set<DRectifytype126> DRectifytype126s) {
		this.DRectifytype126s = DRectifytype126s;
	}

	public DRectifytype126 addDRectifytype126(DRectifytype126 DRectifytype126) {
		getDRectifytype126s().add(DRectifytype126);
		DRectifytype126.setDRectifytype126(this);

		return DRectifytype126;
	}

	public DRectifytype126 removeDRectifytype126(DRectifytype126 DRectifytype126) {
		getDRectifytype126s().remove(DRectifytype126);
		DRectifytype126.setDRectifytype126(null);

		return DRectifytype126;
	}

}